from django.contrib import admin
from l2ldjango.apps.usermanagement.models import status,userprofile,PracticeArea,Department,County

#admin.site.register(status)
admin.site.register(PracticeArea)

class StatusAdmin(admin.ModelAdmin):
    list_per_page=10
    ordering=['status',]
    list_display=('status','code')
    #fields = ('name','email','company_name','primary_contact','phone','status',)
    
admin.site.register(status,StatusAdmin)

class ProfileUser(admin.ModelAdmin):
    list_per_page=10
    ordering=['user',]
    list_display=('user','user_type','zip','address','user_status')
    exclude= ('old_imported','verification_code','first_time','last_contact_reg_period_start_year','last_contact_date','fb_id','verified')
    #fields = ('name','email','company_name','primary_contact','phone','status',)
    
admin.site.register(userprofile,ProfileUser)
admin.site.register(Department)
admin.site.register(County)